<? include 'server_config.php'; 






$sql="
	SELECT user_idx FROM ndd_user WHERE mail = '".$_GET['user']."' AND verify_code ='".$_GET['key']."';";

$result = mysql_query($sql,$connect);

//echo $sql;
$row = mysql_fetch_row($result);

if($row[0]=="")
{
	?>
	<script>
		alert("올바른 접근이 아닙니다.");
		location.href='user_lost.php';
	</script>
	<?
}
else
{
	$user_idx = $row[0];

	$sql="
	UPDATE ndd_user SET verified = 'Y' WHERE user_idx = '".$user_idx."';";

	$result = mysql_query($sql,$connect);



	?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title></title>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <link rel="Stylesheet" type="text/css" href="./css/common.css" />
</head>
<body>

	<div style='position:absolute; top:0px; left:50%; margin-left:-500px; width:1000px;height:460px; padding: 0px; background-repeat: no-repeat; background-image: url(./img_bg/user_lost_reset.png);'>
		<form action='user_lost_reset_proc.php' method='post' name='fwrite'>
			<div style="position:absolute;top:322px;left:422px;width:185px;height:20px;">
				<span>
					<? echo $_GET['user'];?>
					<input type='hidden' name='user_name' value="<? echo $_GET['user'];?>">
				</span>
			</div>
			<div style="position:absolute;top:356px;left:422px;width:185px;height:20px;">
				<span>
					<input type='password' name='user_password' style="background:transparent;border:0px; width:185px;">
				</span>
			</div>
			<div style="position:absolute;top:395px;left:422px;width:185px;height:20px;">
				<span>
					<input type='password' name='user_password_check' style="background:transparent;border:0px; width:185px;">
				</span>
			</div>

			<div style="position:absolute;top:372px;left:637px;width:83px;height:45px;cursor:pointer;" onclick="fwrite.submit();"></div>

		</form>



	</div>
</body>
</html>


	<?
}



?>


